//-----------------------------------------------------------------------------
// Bend2D - Physics Engine
// Roberto Bender <beto.bender@gmail.com>
// Description: 
// Date: 08/03/2010
//-----------------------------------------------------------------------------
#ifndef BENCHMARKING_H
#define BENCHMARKING_H

#ifdef LINUX
#include <sys/time.h>
#elif WIN32
#include <windows.h>
#endif

namespace bend2d
{
    class StopWatch
    {
        public:
            StopWatch();
            void Start();
            void Stop();
            void Reset();
            unsigned int GetTime() const;
        private:
#ifdef LINUX
            struct timeval m_Start;
            struct timeval m_End;
            bool m_Running;
#elif WIN32
            SYSTEMTIME m_Start;
            SYSTEMTIME m_End;
            bool m_Running;
#endif
    };
}

#endif
